package com.yuyou.tas.service.api.feedback.service;

import com.yuyou.tas.service.api.feedback.entity.FeedbackNote;
import com.yuyou.tas.util.bean.ResBoolSimpleInfo;
import com.yuyou.tas.util.bean.ReturnResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "tas-feedback-service")
@RequestMapping(value = "/feedbackNoteAPI")
public interface FeedbackNoteAPI {

    /**
     * 添加优秀笔记
     * @param feedbackClassId
     * @param urls
     * @param organId
     * @param userId
     * @return
     */
    @RequestMapping(value = "/addFeedbackNote")
    ResBoolSimpleInfo addFeedbackNote(@RequestParam("feedbackClassId") Long feedbackClassId, @RequestParam("urls") String urls,
                                      @RequestParam("organId") Long organId, @RequestParam("userId") Long userId);


    /**
     * 删除优秀笔记
     * @param feedbackNoteId
     * @return
     */
    @RequestMapping(value = "/delFeedbackNote")
    ReturnResult delFeedbackNote(@RequestParam("feedbackNoteId") Long feedbackNoteId);

    /**
     * 根据反馈班级 id 查找笔记
     * @param feedbackClassId
     * @return
     */
    @RequestMapping(value = "/findNoteByFeedbackClassId")
    List<FeedbackNote> findNoteByFeedbackClassId(@RequestParam("feedbackClassId")Long feedbackClassId);


    /**
     * 获取全部需要处理的资源
     * 微信图片->七牛云
     * @return
     */
    @RequestMapping(value = "/findAllNeedOperate")
    List<FeedbackNote> findAllNeedOperate();
}

